package org.mv.mm.api;

import java.util.Date;
import java.util.List;

/**
 * dořešit od do nebo pevný čas, relativní čas apod
 * 
 * možná přes nějaké rozhraní a možnost přidat další potomky/...
 * @author Martin
 */
public class TimeEvent implements IConnectible {
 
  private Date timeFrom;
  private Date timeTo;

  private TimeEvent baseEvent;

  public TimeEvent(Date timeFrom, Date timeTo, TimeEvent baseEvent) {
    this.timeFrom = timeFrom;
    this.timeTo = timeTo;
    if (baseEvent!=null) {
       this.baseEvent = baseEvent;
    }
  }
  
  

  public static TimeEvent compareNewer(List<TimeEvent> events) {
    return null;
  }

  public static TimeEvent compareOlder(List<TimeEvent> events) {
    return null;
  }

  public static Date periodBetween(TimeEvent firstEvent, TimeEvent secondEvent) {
    return null;
  }

  /**
   * Returns the length of the TimeEvent = timeTo - timeFrom in DateTime format.
   * 
   */
  public Date getLength() {
    return null;
  }


}
